﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MethodDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            Myth m = new Myth(); 
            Worker a = new Worker();
            Worker b = new Worker();
            a.Age = 20;
            b.Age = 23;

            m.Exchange(a,b);
            Console.WriteLine(a.Age +","+ b.Age);

            int c = 5;
            int d = 6;
            m.Exchange(c,d);
            Console.WriteLine(c+","+ d);

            Console.ReadLine();
        }
    }
}
